package com.sg.vo;

/**
 * @author  ZH
 * 商品表+商品状态+商品分类
 */
public class CommodityVO {

    /**
     *商品编号
     */
    private int comId;

    /**
     *商品名称
     */
    private String comName;

    /**
     *商品价格
     */
    private int comPrice;

    /**
     *商品照片
     */
    private String comImg;

    /**
     *商家编号
     */
    private int businessId;

    /**
     *商品状态编号
     */
    private int comStateId;

    /**
     * 商品分类编号
     */
    private int cateId;

    /**
     * 商家名称
     */
    private  String businessName;
    /**
     *商品状态名称
     */
    private String comStateName;

    /**
     * 商品分类名称
     */
    private String cateName;

    public CommodityVO() {
    }

    public CommodityVO(int comId, String comName, int comPrice, String comImg, int businessId, int comStateId) {
        this.comId = comId;
        this.comName = comName;
        this.comPrice = comPrice;
        this.comImg = comImg;
        this.businessId = businessId;
        this.comStateId = comStateId;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "comId=" + comId +
                ", comName='" + comName + '\'' +
                ", comPrice=" + comPrice +
                ", comImg='" + comImg + '\'' +
                ", businessId=" + businessId +
                ", comStateId=" + comStateId +
                '}';
    }

    public int getComId() {
        return comId;
    }

    public void setComId(int comId) {
        this.comId = comId;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public int getComPrice() {
        return comPrice;
    }

    public void setComPrice(int comPrice) {
        this.comPrice = comPrice;
    }

    public String getComImg() {
        return comImg;
    }

    public void setComImg(String comImg) {
        this.comImg = comImg;
    }

    public int getBusinessId() {
        return businessId;
    }

    public void setBusinessId(int businessId) {
        this.businessId = businessId;
    }

    public int getComStateId() {
        return comStateId;
    }

    public void setComStateId(int comStateId) {
        this.comStateId = comStateId;
    }
}
